from selenium import webdriver
from selenium.webdriver.common.by import By


option = webdriver.EdgeOptions()
option.add_argument('--headless')
driver = webdriver.Edge(options=option)
driver.get('https://movie.douban.com/chart')

tag = driver.find_element(By.XPATH, value='//div[@class="pl2"]/a')
print(tag.text)
print(tag.get_attribute('href'))